package app.beit.finportal.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="fin_documents")
@SequenceGenerator(allocationSize=1, name="seqHibernateName", sequenceName="seq_fin_documents")
public class Documents extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(name="name", nullable=false, length=100)
	private String name;
	
	@Column(name="description", length=200)
	private String description;
	
	@Column(name="file_location", nullable=false, length=200)
	private String fileLocation;
	
	@Column(name="status", nullable=false, precision=1, scale=0)
	private Integer status;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFileLocation() {
		return fileLocation;
	}

	public void setFileLocation(String fileLocation) {
		this.fileLocation = fileLocation;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Documents [name=" + name + ", description=" + description
				+ ", fileLocation=" + fileLocation + ", status=" + status + "]";
	}
	
}
